#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "LED.H"
#include "KEY.H"
#include "OLED.H"
#include "CountSensor.h"
#include "Time.h"
#include "pwm.h"

uint16_t num;
int main()
{
	Led_Init();
	PWM_Init();
	//OLED_Init();
	//CountSensor_Init();
	//OLED_ShowChar(1,1,'W');
	while(1)
	{
		//OLED_ShowString(1,1,"QWEQW");
		/*
		Led_ON();
		Delay_ms(500);
		Led_OFF();
		Delay_ms(500);
		*/
		for(num =0;num<=100;num++)
		{
			PWM_SetCompare1(num);
			Delay_ms(10);
		}
		for(num =0;num<=100;num++)
		{
			PWM_SetCompare1(100-num);
			Delay_ms(10);
		}
	}
}
